package com.macro.mall.tiny.modules.ums.controller;

import com.macro.mall.tiny.modules.ums.dto.UmsAdminParam;

public class Myclass {
    static{
        System.out.println("Myclass正在被加载");
        //静态代码块只在类加载时执行一次
    }
    private String name;//整个（private String name;）是一个Field
    boolean sex ;//整个（boolean sex ;）是一个Field
    protected int age;
    public double height;
    public static final double PI=3.14;//整个（public static final double PI=3.14;）是一个Field

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isSex() {
        return sex;
    }

    public void setSex(boolean sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    public static double getPI() {
        return PI;
    }

    public static void main(String[] args) {

    }
    public boolean login(String name,String mima){
        if("admin".equals(name)&&"123".equals(mima)){
            return true;
        }
        return false;
    }

    public boolean login1(UmsAdminParam  umsAdminParam){
        if("123".equals(umsAdminParam.getNickName())){
            return true;
        }
        return false;
    }
}

